<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Wilead\IArtistBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;

/**
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Wilead\IArtistBundle\Repository\GiftRepository")
 */
class Gift {

    /**
     * @ORM\Column(type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @ORM\Column(type="string")
     */
    private $gift;

    /**
     * @ORM\Column(type="integer")
     */
    private $quantity = 1;

    /**
     * @ORM\Column(type="text", nullable=true)
     */
    private $message;

    /**
     * @ORM\ManyToOne(targetEntity="User")
     * @ORM\JoinColumn(name="sendId", referencedColumnName="id", nullable=false)
     * */
    private $Send;

    /**
     * @ORM\ManyToOne(targetEntity="User")
     * @ORM\JoinColumn(name="receiveId", referencedColumnName="id", nullable=false)
     * */
    private $Receive;

    /**
     * @Gedmo\Timestampable(on="create")
     * @ORM\Column(type="datetime")
     */
    private $created;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId() {
        return $this->id;
    }

    /**
     * Set gift
     *
     * @param string $gift
     * @return Gift
     */
    public function setGift($gift) {
        $this->gift = $gift;

        return $this;
    }

    /**
     * Get gift
     *
     * @return string 
     */
    public function getGift() {
        return $this->gift;
    }

    /**
     * Set quantity
     *
     * @param integer $quantity
     * @return Gift
     */
    public function setQuantity($quantity) {
        $this->quantity = $quantity;

        return $this;
    }

    /**
     * Get quantity
     *
     * @return integer 
     */
    public function getQuantity() {
        return $this->quantity;
    }

    /**
     * Set message
     *
     * @param string $message
     * @return Gift
     */
    public function setMessage($message) {
        $this->message = $message;

        return $this;
    }

    /**
     * Get message
     *
     * @return string 
     */
    public function getMessage() {
        return $this->message;
    }

    /**
     * Set created
     *
     * @param \DateTime $created
     * @return Gift
     */
    public function setCreated($created) {
        $this->created = $created;

        return $this;
    }

    /**
     * Get created
     *
     * @return \DateTime 
     */
    public function getCreated() {
        return $this->created;
    }

    /**
     * Set Send
     *
     * @param \Wilead\IArtistBundle\Entity\User $send
     * @return Gift
     */
    public function setSend(\Wilead\IArtistBundle\Entity\User $send) {
        $this->Send = $send;

        return $this;
    }

    /**
     * Get Send
     *
     * @return \Wilead\IArtistBundle\Entity\User 
     */
    public function getSend() {
        return $this->Send;
    }

    /**
     * Set Receive
     *
     * @param \Wilead\IArtistBundle\Entity\User $receive
     * @return Gift
     */
    public function setReceive(\Wilead\IArtistBundle\Entity\User $receive) {
        $this->Receive = $receive;

        return $this;
    }

    /**
     * Get Receive
     *
     * @return \Wilead\IArtistBundle\Entity\User 
     */
    public function getReceive() {
        return $this->Receive;
    }

}